import React, {
  useEffect
} from 'react';
import i18n from 'i18n';
import { Link } from 'react-router-dom';
import * as css from './index.module.css';

export default function PageMain() {

  useEffect(() => {
    // 设置导航标题
    HWH5.navTitle({ title: '三足鼎立' });
  }, []);

  return (
    <div className={css.App}>
      <div className={css['App-header']} />
      <h1 className={css['App-title']}>{i18n.t('common:welcome')}</h1>
      <p className={css['App-intro']}>
        {i18n.t('common:getStart')} {i18n.t('common:edit')}
        <code>src/Page_Home/index.js</code> {i18n.t('common:saveReload')}
      </p>
      <Link to='/desc' className={css['home-link']}>
        道路MES
      </Link>
      <Link to='/navigateto' className={css['home-link']}>
        筑路MES
        </Link>
      <Link to='/refresh' className={css['home-link']}>
        养护MES
      </Link>
      <Link to='/' className={css['home-link']}>
        集团动态
      </Link>
    </div>
  );
}
